<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 筛选大于10的数组，并放入新的数组
        let arr = [2, 0.6, 1, 77, 0, 52, 52, 0, 25, 7]
        // 用于接受新的元素
        let arr1 = []
        // 遍历数组
        for (let i = 0; i < arr.length; i++) {
            // 筛选数组元素
            if (arr[i] >= 10) {
                arr1.push(arr[i])
            }
        }
        console.log(arr1)
    </script>
</body>

</html>